#软件安装，自选，不一定每台机器都要安装
#安装nginx
#sudo rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
##1、添加源
#sudo yum install -y nginx
##启动Nginx并设置开机自动运行
#sudo systemctl start nginx.service
#sudo systemctl enable nginx.service
#安装 minio 文件对象储存
docker pull minio/minio
docker run \
 -p 9000:9000 \
-d \
--name minio \
-e "MINIO_ACCESS_KEY=AKIAIOSFODNN7EXAMPLE" \
-e "MINIO_SECRET_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" \
-v /home/data:/data \
-v /home/config:/root/.minio \
-v /uploads:/uploads \
  6daaa5267d94 server /data --console-address ":9000"

#下载旧版本的minio 支持文件储存
 docker pull minio/minio:RELEASE.2021-01-16T02-19-44Z
 docker run -p 9000:9000 --name minio -di --restart=always \
  -e "MINIO_ROOT_USER=AKIAIOSFODNN7EXAMPLE" \
  -e "MINIO_ROOT_PASSWORD=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" \
  -v /home/data:/data \
  -v /home/config:/root/.minio \
  minio/minio:RELEASE.2021-01-16T02-19-44Z server /data


